DESTDIR =
VPATH = @srcdir@ @srcdir@/.. @srcdir@/../..
srcdir = @srcdir@
objdir = .
srcroot = $(srcdir)/../../..
objroot = $(objdir)/../../..
mkinstalldirs = $(SHELL) $(srcroot)/mkinstalldirs

prefix = @prefix@
exec_prefix = @exec_prefix@

host_alias = @host_alias@
target_alias = @target_alias@

bindir = @bindir@
libdir = @libdir@
tooldir = $(exec_prefix)/$(target_alias)

objtype = @objtype@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

# Multilib support variables.
# TOP is used instead of MULTI{BUILD,SRC}TOP.
MULTIDIRS =
MULTISUBDIR =
MULTIDO = true
MULTICLEAN = true

SHELL =	/bin/sh

CC = @CC@

AS = @AS@
AR = @AR@
LD = @LD@
RANLIB = @RANLIB@

EMSK_OBJS = arc_exc_asm.o \
	    arc_exception.o \
	    board.o \
	    dw_uart_obj.o \
	    console_io.o \
	    dw_uart.o

override CFLAGS += -I${srcdir}

# Host specific makefile fragment comes in here.
@host_makefile_frag@

all: $(EMSK_OBJS)

arc_exc_asm.o: arc/arc_exc_asm.S
arc_exception.o: arc/arc_exception.c
board.o: board/board.c
dw_uart_obj.o: board/emsk/uart/dw_uart_obj.c
console_io.o: common/console_io.c
dw_uart.o: device/designware/uart/dw_uart.c
$(EMSK_OBJS):
	$(CC) $(CFLAGS_FOR_TARGET) $(INCLUDES) -c $(CFLAGS) $<
